package com.ysd.lis.entity.lab;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ysd.lis.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.sql.Timestamp;
import java.util.List;

/**
 * <p>
 * 销售财务结算
 * </p>
 *
 * @author WH
 * @since 2024-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("LAB_FINANCE_SALES_SETTLE")
public class LabFinanceSalesSettle extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 销售单据号
     */
    @TableField("SALES_SETTLE_NO")
    private String salesSettleNo;

    /**
     * 销售人员CODE
     */
    @TableField("SALESMAN_CODE")
    private String salesmanCode;

    /**
     * 销售人员名称
     */
    @TableField("SALESMAN_NAME")
    private String salesmanName;

    /**
     * 单据数
     */
    @TableField("SETTLE_NUM")
    private Integer settleNum;

    /**
     * 费用合计
     */
    @TableField("COSTS")
    private Double costs;

    /**
     * 实际收费
     */
    @TableField("REAL_COSTS")
    private Double realCosts;

    /**
     * 销售提成金额
     */
    @TableField("BROKERAGE_COSTS")
    private Double brokerageCosts;

    /**
     * 结算时间
     */
    @TableField("SETTLE_DATE")
    private Timestamp settleDate;

    @TableField("SETTLE_STATUS")
    private String settleStatus;

    @TableField(exist = false)
    private List<LabFinanceSalesSettleDetall> salesSettleDetalls;

}
